package STUDENT.LEKHUONGDUY.OOPs.PoundConvert;

import java.util.Scanner;

public class Views {
	public static void main(String[] args) {
		Object obj = new Object();
		Controllers ctr = new Controllers();
		Scanner sc = new Scanner(System.in);
		String test;
		
		do {
			System.out.println("Nhập Kilogam: ");
			test = sc.nextLine();
			if (test.isEmpty()) {
				System.out.println("Bạn chưa nhập Kilogam!");
			} else {
				obj.setKilogam(Double.parseDouble(test));
			}
		} while (test.isEmpty());
		
		ctr.PoundController(obj);
		System.out.println(obj.getKilogam() + " Kilogam" + " = " + ctr.result + " Pound");

	}
}
